package com.thiege.mall.dao;

import com.thiege.mall.domain.User;
import org.apache.ibatis.annotations.Param;

public interface IUserDao {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    /**
     * 根据用户名和密码查询用户
     * @param username 用户名
     * @param password 用户密码
     * @return 用户
     */
    User selectUserByUsernameAndPassword(@Param("username")String username,@Param("password")String password);
}